gtk4-update-icon-cache: Avoid UAC on 32-bit Windows
authorChun-wei Fan <fanc999@yahoo.com.tw>
Wed, 3 Feb 2021 02:16:58 +0000 (02:16 +0000)
committerChun-wei Fan <fanc999@yahoo.com.tw>
Wed, 3 Feb 2021 02:16:58 +0000 (02:16 +0000)
commitf0967fa5e409ccf64da44e7fc94d355a01e91ecf
tree47fbc91e4c8b74c613fe5c9f6a7c2b5601b4435b
parent3d85d53e5d2297ebe70c77b646e014ac6641137d
gtk4-update-icon-cache: Avoid UAC on 32-bit Windows

As the program executable name has 'update' in its filename,
gtk4-update-icon-cache.exe is considered to be an installer program on 32-bit
Windows [1], which will cause the program to fail to run unless it is running
with elevated privileges (i.e. UAC).

Avoid this situation by embedding a manifest file into the final executable
that tells Windows that this is not a program that requires elevation.

Fixes issue #3632.

[1]: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc709628(v=ws.10)?redirectedfrom=MSDN,
     under section "Installer Detection  Technology"
tools/generate-uac-manifest.py [new file with mode: 0644]
tools/meson.build